package cn.kgc.service.impl;

import cn.kgc.dao.OrganizationDao_yy;
import cn.kgc.dao.PositionDao_yy;
import cn.kgc.pojo.Organization;
import cn.kgc.pojo.Position_yy;
import cn.kgc.service.PositionService_yy;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: yy
 * @date: 2022/2/15
 * @description:
 */
@Service
public class PositionServiceImpl_yy implements PositionService_yy {
    @Resource
    private PositionDao_yy pd;
    @Resource
    private OrganizationDao_yy od;

    @Override
    public Page<Position_yy> selPyy(Integer positionid, String name, Integer departmentid) {
        return pd.selPyy(positionid,name,departmentid);
    }

    @Override
    public Position_yy chaPyy(int positionid) {
        return pd.chaPyy(positionid);
    }

    @Override
    public List<Organization> selOyy() {
        return od.selOyy();
    }
}
